﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Project.DBMAPPING;
using Project.IDAO;

namespace Project.DAO
{
    public class TransactionHistoryListDAO : ITransactionHistoryListDAO
    {
        // Declare variable to access database
        readonly DbMappingDataContext _database = new DbMappingDataContext();

        /// <summary>
        /// Load transaction history of user
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SP_TRANSACTIONHISTORY_LISTTRANSACTIONResult> LoadTransactionHistory()
        {
            return _database.SP_TRANSACTIONHISTORY_LISTTRANSACTION();
        }
    }
}
